<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        /*超链接不会继承color*/
        div {
            color: red;
            font-size: 20px;
        }
        a {
            color: red;
        }
    </style>
</head>
<body>
<div>
    <a href="#">这是div 中的a</a>
    <h1>一级标题</h1>
</div>
</body>
</html>